package com.zwj.design.creating.factory.factory;

import com.zwj.design.creating.factory.buttons.Button;

/**
 * 基础创建者
 *
 * @author 张文接
 * @version 1.0
 * @createTime 2024/3/11 14:36
 */
public abstract class Dialog {
    public void renderWindow() {
        Button button = createButton();
        button.render();
    }

    /**
     * 创建 Button
     * @return 按钮
     */
    public abstract Button createButton();
}
